package com.example.houqin_oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.CollectTemplate;
import com.example.houqin_oa.service.CollectTemplateService;
import com.example.houqin_oa.mapper.CollectTemplateMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
* @author liang
* @description 针对表【collect_template】的数据库操作Service实现
* @createDate 2022-10-27 14:17:06
*/
@Service
public class CollectTemplateServiceImpl extends ServiceImpl<CollectTemplateMapper, CollectTemplate>
    implements CollectTemplateService{

    @Autowired
    CollectTemplateMapper collectTemplateMapper;

    @Override
    public List<CollectTemplate> TemplateAll(CollectTemplate collectTemplate) {
        return collectTemplateMapper.TemplateAll(collectTemplate);
    }

    @Override
    public boolean AddTemplate(CollectTemplate collectTemplate) {
        return collectTemplateMapper.AddTemplate(collectTemplate);
    }

    @Override
    public boolean DelTemplate(CollectTemplate collectTemplate) {
        return collectTemplateMapper.DelTemplate(collectTemplate);
    }

    @Override
    public int Modify(CollectTemplate collectTemplate) {
        return collectTemplateMapper.updateById(collectTemplate);
    }

    @Override
    public List<CollectTemplate> allCollectDet(CollectTemplate collectTemplate) {
        return collectTemplateMapper.allCollectDet(collectTemplate);
    }
}




